<div class="mainSearch">
	<div class="search_content">
		<table width="96%" class="tab_search" border="0" cellpadding="0" cellspacing="1" align="right">
		<tbody>
			<tr>
				<td width="15%" class="aright">投资计划编号</td>
				<td>
					<input type=text name="investment_no" size=30 maxlength="30" value='' />
					<span class="search_flag">申报人</span><input type=text name="investment_no" size="30"  maxlength="30" value='' />
					<span class="search_flag">申报日期</span>
					<input type=text name="application_date" id="application_date" size=15 value='{%$application_date|date_format:"%Y-%m-%d"%}' readonly>
					<script>
						Calendar.setup({
							inputField     :    "application_date",   // id of the input field
							ifFormat       :    "%Y-%m-%d",       // format of the input field
							showsTime      :    false,
							timeFormat     :    "24"
						});
					</script>
				</td>
			</tr>
			<tr>
				<td class="aright">投资计划备注</td>
				<td colspan="2"><textarea cols="95" rows="4" id="plan_notes" name="plan_notes" ></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="aright">
					<div class="search_btn">
						<span class="btn_01" onclick="location.href='?c=zy_nvestment&m=add'">查 询</span>
						<span class="btn_01" onclick="location.href='?c=zy_nvestment&m=add'">添 加</span>
					</div>
				</td>
			</tr>
		</tbody>
		</table>
	</div>
	
</div>

<!-- 搜索结果标题 -->
<div class="mainTitleResult">
	<span>结果显示</span>
</div>

<!-- 搜索结果 -->
<div class="mainResult">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
			<th width="20%">计划投资自编号</th>
			<th width="10%">申报人</th>
			<th width="10%">申请日期</th>
			<th>计划备注</th>
			<th width="30%">操作</th>
		</tr>
	</thead>
	<tbody>
		{%foreach from=$arr key=key item=arr_item%}
		<tr class="list_{%$key+1%}">
			<td>{%$arr_item.investment_no%}</td>
			<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
			<td>{%$arr_item.application_date|date_format:"%Y-%m-%d"%}</td>
			<td class="aleft">{%$arr_item.plan_notes%}</td>
					
			<td>
				<a href='index.php?c=zy_nvestment&m=browse&investment_no={%$arr_item.investment_no%}'>详细</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_nvestment&m=edit&investment_no={%$arr_item.investment_no%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_nvestment&m=del&investment_no={%$arr_item.investment_no%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mc_type&m=add&investment_no={%$arr_item.investment_no%}'>添加设备</a>&nbsp;&nbsp;
				{% if $zy_mc_type_arr[$arr_item.investment_no] %}
					<a href='index.php?c=zy_plan_reply&m=add&investment_no={%$arr_item.investment_no%}'>批复</a>&nbsp;&nbsp;
					{%if $arr_item.is_reply%}
						<a href='index.php?c=zy_sell&m=add&investment_no={%$arr_item.investment_no%}'>执行</a>
					{%/if%}
				{%/if%}				
			</td>
		</tr>			
		{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="6"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
</div>
